# coding: utf-8
from flask_sqlalchemy import SQLAlchemy


db = SQLAlchemy()



class RepairImgInfo(db.Model):
    __tablename__ = 'repairImgInfo'

    AutoID = db.Column(db.BigInteger, primary_key=True, info='主键')
    imgID = db.Column(db.BigInteger, nullable=False, index=True, info='图片ID')
    imgSrc = db.Column(db.String(255), info='图片表路径')
    repairInfoID = db.Column(db.BigInteger, index=True, info='外键，一张照片可以对应到一条维修记录')
    isDelete = db.Column(db.Integer, server_default=db.FetchedValue())
    createTime = db.Column(db.DateTime, server_default=db.FetchedValue())
